RewriteEngine On
RewriteRule  ^p/(.*)$/?$ post.php?user=$1 [NC,L]
RewriteRule  ^register register.php [NC,L]
RewriteRule  ^login login.php [NC,L]
RewriteRule  ^u messages.php [NC,L]
RewriteRule  ^complete complete.php [NC,L]